package br.com.fiap.entity;

import java.util.List;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

//@Entity
@Table(name="TAB_AGENDA")
@SequenceGenerator(name="seqAgenda", sequenceName="SEQ_AGENDA", allocationSize=1)
public class AgendaMedica {

	@Id
	@GeneratedValue(generator="seqAgenda", strategy=GenerationType.SEQUENCE)
	
	@Column(name="COD_AGENDA")
	private int id;
	
	@Column(name="NN_MEDICO")
	private Medico medico;
	
	@Column(name="AGENDA")
	private Map<Dias,List<Horas>> agenda;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Medico getMedico() {
		return medico;
	}

	public void setMedico(Medico medico) {
		this.medico = medico;
	}

	public Map<Dias, List<Horas>> getAgenda() {
		return agenda;
	}

	public void setAgenda(Map<Dias, List<Horas>> agenda) {
		this.agenda = agenda;
	}

}
